import React from "react";
import {Button as AntButton} from "antd";
import PropTypes from "prop-types";
import "./RoundButton.css";

export default class RoundButton extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            text: this.props.text
        }
    }
    render() {
        return (
            <AntButton className={"RoundButton"} type="primary" shape="round" size={this.props.size}>
                {this.state.text}
            </AntButton>
        );
    }
}

RoundButton.defaultProps = {
    size: "large",
    text: "BUTTON"
};

RoundButton.propTypes = {
    text: PropTypes.string
};